package com.example.taximeter.bean;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 计价器厂商
 */
public class Fact {

    @NotNull(message = "计价器厂商id格式错误", groups =  GroupUpdate.class)
    private Integer id;//计价器id--主键

    @NotNull(message = "计价器厂商名称格式错误", groups = {GroupCreate.class, GroupUpdate.class})
    @Length(min = 1, max = 100, message = "计价器厂商名称格式错误", groups = {GroupCreate.class, GroupUpdate.class})
    private String factname;//计价器厂商名称

    @Length(min = 0, max = 100, message = "备注格式错误", groups = {GroupCreate.class, GroupUpdate.class})
    private String memo;//备注

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFactname() {
        return factname;
    }

    public void setFactname(String factname) {
        this.factname = factname;
    }
}
